package com.twobu.twobuinsight.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Map;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(description = "任务状态项")
public class TaskStatusItem {

    @Schema(description = "任务ID")
    private String taskId;

    @Schema(description = "步骤ID")
    private Integer stepId;

    @Schema(description = "整体状态")
    private String overallStatus;

    @Schema(description = "当前节点")
    private String currentNode;

    @Schema(description = "节点状态")
    private String nodeStatus;

    @Schema(description = "消息")
    private String message;

    @Schema(description = "时间戳")
    private String timestamp;

    @Schema(description = "附加数据")
    private Map<String, Object> payload;
}
